<script setup>
import { ref } from 'vue'

const flag = ref(true)

const address = ref(['江西', '南昌'])
</script>

<template>
  <main>
    <div>
      <span v-if="flag">欢迎使用Vue.js</span>
      <span v-else>欢迎来到江西信息应用职业技术学院</span>

      <button class="btn" @click="flag = !flag">click</button>
    </div>

    <div>
      <select class="border" v-if="address.length === 0">
        <option>江西</option>
        <option>南昌</option>
      </select>
      <div v-else>{{ address.join(' / ') }}</div>
    </div>
  </main>
</template>
